package com.zmj.sy.mom.srv.aps.service;

import com.zmj.sy.mom.srv.aps.bean.entity.base.BaseConfig;
import com.zmj.sy.mom.srv.aps.bean.vo.base.BaseListResVo;
import com.zmj.sy.mom.srv.aps.mapper.BaseConfigMapper;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@RequiredArgsConstructor
@Service
public class BaseConfigService {

    private final BaseConfigMapper baseConfigMapper;

    public BaseListResVo<BaseConfig> plateConfig() {
        List<BaseConfig> list = baseConfigMapper.lambdaQuery().eq(BaseConfig::getLabelType, "prePlate").list();
        return BaseListResVo.of(list, BaseConfig.class);
    }

}
